#include "pthreadPool.hpp"
#include <time.h>

int main()
{
    srand((size_t)time(nullptr) ^ 1100 + 1);
    pthreadPool<int> *p = pthreadPool<int>::get();
    p->start();
    while (true)
    {
        p->task(rand() % 100 + 1);
        cout << "插入成功" << endl;
    }
    delete p;
    return 0;
}